package cn.nebula.music.service;

import java.sql.Timestamp;
import java.util.Set;

import org.springframework.stereotype.Service;

import cn.nebula.music.domain.Comment;

@Service
public interface CommentService {
	public Set<Comment> findAllComments() throws Exception;

	public Set<Comment> findAllCommentsOfBT() throws Exception;

	public Comment findCommentById(Integer id) throws Exception;

	public Set<Comment> findCommentByContent(String content) throws Exception;

	public Set<Comment> findCommentByTime(Timestamp time) throws Exception;

	public Set<Comment> findCommentsBySong(Integer songId) throws Exception;

	public Set<Comment> findCommentsByUser(Integer userId) throws Exception;

	public Set<Comment> findCommentByComment(Integer commentId) throws Exception;

	public void addComment(Comment comment) throws Exception;

	public void updateComment(Comment comment) throws Exception;

	public void deleteCommentById(Integer id) throws Exception;
}
